package com.venus.mapper;

import com.venus.entity.Massage;
import com.venus.entity.Register;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * Created by lanou on 18/3/1.
 */

@Mapper
public interface UserMapper {
    Register valiName(Register register);
    void register(Register register);
    int findUid(Register register);
    void registerInsert(@Param("uid") int id);
    Massage findMassage(@Param("uid") int id);
    void upMassage(@Param("uid") int id,@Param("massage") Massage massage);
    void upUser(@Param("id") int id,@Param("massage") Massage massage);
    String valiPwd(String username);
    void upPwd(@Param("username") String username,@Param("newpwd") String newpwd);
    void upImg(@Param("uid") int id,@Param("avatar") String avatar);
}
